package Dome1;

public class FindMax <E extends Comparable<E>>{
    public E Max(E[]arr){
        E ret=arr[0];
        for (int i = 1; i < arr.length; i++) {
            if(ret.compareTo(arr[i])<0){
                ret=arr[i];
            }
        }
        return ret;
    }
}
